for rooster in range(21):  # 公鸡最多20只
    for hen in range(34):  # 母鸡最多33只
        chicks = 100 - rooster - hen  # 剩下的都是小鸡
        if chicks % 3 == 0 and rooster * 5 + hen * 3 + chicks / 3 == 100:
            print(f"公鸡: {rooster}只, 母鸡: {hen}只, 小鸡: {chicks}只")